<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="Annotation.DataBase.*"%>
<%@ page import="java.sql.*"%>
<%
String type = (String)session.getAttribute("type");
String id =  (String)session.getAttribute("id");

/*
if(type != null && type.equals("student")){
	out.print("Hello!");
}else{
	out.print("<script>alert('You are not student!!Get OUT!');</script>");
	out.print("<script>window.location='Login.jsp';</script>");
	//Redirect to Login page
}
*/

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'createTeacherAcc' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <body>
  <br /><br />
  <div style="border:1px solid #000; text-align:center; width:10%; float: left;" onClick="change(1,<%=id%>);">Profile</div>
  <div style="border:1px solid #000; text-align:center; width:10%; float: left;" onClick="change(2,<%=id%>);">Classes</div>
  <br />
  <iframe id="iframe" name="iframe" width="100%" style="border:0px;" src=""></iframe>
  
  <script type="text/javascript">
  	function change(val,id){
  		if(val==1){
  			document.getElementById("iframe").src = "StdProfile.jsp?id="+id;
  		}else if(val==2){
  			document.getElementById("iframe").src = "StdClasses.jsp?id="+id;
  		}  		
  	}  	
  </script>
  
  
  </body>
  
</html>